#include <iostream>

using namespace std;

int main()
{
    int var = 20;
    int *ip;

    ip = &var;

    cout << "Value of var :" << var << endl;
    cout << "Address of var :" << ip << endl;  //输出在指针变量中存储的地址；
    cout << "Value of *ip :" << *ip << endl;   //访问指针中地址的值（指针的指向）
    return 0;
}
